import { message } from "antd";
import * as logService from '../services/log';

export default {
  namespace: 'log',

  state: {
    data: {
      total: 0,
      size: 10,
      current: 1,
      pages: 1,
      records: []
    },
    searchValues: {}
  },

  effects: {
    *clearAll(_, { call }) {
      console.log("clearAll log");
      const res = yield call(logService.clearAll);
      if (res.code === 200) {
        message.success('清除成功');
      }
    },
  },

  reducers: {
  },
};
